﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using Dal;

namespace Bll
{
    public class ToMenuBLL
    {
        ToMenuDAL dal = new ToMenuDAL();
        #region 显示今日推荐
        /// <summary>
        /// 显示今日推荐
        /// </summary>
        /// <returns></returns>
        public List<ToMenu> ToMenushow()
        {
            return dal.ToMenushow();

        }

        #endregion

        #region 添加今日推荐
        /// <summary>
        /// 添加今日推荐
        /// </summary>
        /// <param name="n"></param>
        /// <returns></returns>
        public int AddToMenu(int Toid, string Toname, string Tophoto, string Todescrib, int Toprice)
        {
            return dal.AddToMenu(Toid,Toname,Tophoto,Todescrib,Toprice);
        }
        #endregion

        #region 删除今日推荐
        /// <summary>
        /// 删除今日推荐
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int delToMenu()
        {
            return dal.delToMenu();
        }

        #endregion

    }
}
